﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MVCAddressBook.Models.Entities.UserInfo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	CreateUser
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>CreateUser</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Name) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBox("Name")%>
                <%=Html.ValidationMessage("Name") %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Mobile) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBox("Mobile") %>
                <%: Html.ValidationMessage("Mobile") %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.QQ) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBox("QQ") %>
                <%: Html.ValidationMessage("QQ")%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Phone) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBox("Phone") %>
                <%: Html.ValidationMessage("Phone") %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Email) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBox("Email") %>
                <%: Html.ValidationMessage("Email") %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Address) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBox("Address") %>
                <%: Html.ValidationMessage("Address") %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Company) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBox("Company") %>
                <%: Html.ValidationMessage("Company") %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.HeadImg) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBox("HeadImg") %>
                <%: Html.ValidationMessage("HeadImg") %>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("返回用户列表", "Index")%>
    </div>

</asp:Content>

